package socketmvc.core.processor.bean.optimizer.ret;

import socketmvc.core.context.IContext;
import socketmvc.core.packets.basic.IPacket;
import socketmvc.core.packets.basic.impl.JsonBinPacket;
import socketmvc.core.packets.basic.impl.JsonTextBody;
import socketmvc.core.packets.biz.SockFile;
import socketmvc.core.processor.bean.ProcessorMethodReturn;

import java.util.Collection;

public class DefRetSockFileValOptimizer extends DefAbstractRetOptimizer<SockFile>{
    @Override
    public IPacket doValue(IContext context, IPacket packet, SockFile returnVal, JsonTextBody responseTextBody) {
        return new JsonBinPacket(responseTextBody, returnVal);
    }
}
